package com.mlatent.mvvmproject

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.lihao.jetpackcore.base.BaseViewModel
import com.lihao.jetpackcore.util.ActivityMessenger
import com.mlatent.mvvmproject.app.base.BaseActivity
import com.mlatent.mvvmproject.app.util.StatusBarUtil
import com.mlatent.mvvmproject.ui.login.LoginActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : BaseActivity<BaseViewModel>() {

    override fun layoutId() = R.layout.activity_main

    override fun initView(savedInstanceState: Bundle?) {
        StatusBarUtil.setTranslucent(this)
        button.setOnClickListener {
            ActivityMessenger.startActivity<LoginActivity>(this)
        }
    }
}